//
//  DouyinScrollTableViewCell.m
//  TEXT
//
//  Created by mac on 2024/4/28.
//  Copyright © 2024 刘博. All rights reserved.
//

#import "DouyinScrollTableViewCell.h"
#define kScreenHeight [UIScreen mainScreen].bounds.size.height

@interface DouyinScrollTableViewCell ()

@property (nonatomic, strong) UIView *containerView;

@end

@implementation DouyinScrollTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.containerView];
    }
    return self;
}

- (void)updateWithColor:(UIColor *)color
{
    self.containerView.backgroundColor = color;
}

- (UIView *)containerView
{
    if (!_containerView) {
        _containerView = [[UIView alloc] init];
        _containerView.frame = CGRectMake(0, 0, CGRectGetWidth(self.bounds), kScreenHeight);
    }
    return _containerView;
}

- (void)removeFromSuperview
{
    [super removeFromSuperview];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
